package cn.bonoon.kernel.web.models;

import cn.bonoon.kernel.events.BaseEvent;

/**
 * 单个id值的参数
 * @author jackson
 *
 */
public class IdParameter {
	private Long id;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public static Long toId(BaseEvent event){
		return ((IdParameter)event.getSource()).id;
	}
}
